﻿using System.Collections.Generic;
using System.Text;

namespace Blog.TemplateEngine
{
    public class NodeList : List<INode>
    {
        public string Render(Context context)
        {
            var output = new StringBuilder();
            foreach (var node in this)
            {
                output.Append(node.Render(context).ToString());
            }

            return output.ToString();
        }
    }
}
